echo '要先修改本文件的oldPath和newPath后双击执行'
set oldPath=E:\shoping\coding
set newPath=F:\mostmaven\most

@echo off
SET obj1old=%oldPath%\api-api
SET obj1new=%newPath%\api
SET obj2old=%oldPath%\api-sitedoc
SET obj2new=%newPath%\sitedoc
SET obj3old=%oldPath%\newadmin
SET obj3new=%newPath%\admin
SET obj4old=%oldPath%\newbaas
SET obj4new=%newPath%\baas
SET obj5old=%oldPath%\newcommons
SET obj5new=%newPath%\commons
SET obj6old=%oldPath%\newcore
SET obj6new=%newPath%\core

rem 备份old
rem IF NOT EXIST "f:\old__备份\" MD "f:\old__备份\"
rem IF NOT EXIST "f:\new__备份\" MD "f:\new__备份\"
rem xcopy/y /E  %oldPath% f:\old__备份\
rem xcopy /y /E  %newPath% f:\new__备份\

setlocal enabledelayedexpansion
for /l %%i in (1,1,6) do (
	 xcopy /y /E !obj%%inew!\src !obj%%iold!\src
	 copy /y /E !obj%%inew!\README.md !obj%%iold!\README.md
)
echo 完成 & pause